*** Settings ***
Library           Selenium2Library
Resource          TsDiffConBensTypes.robot

*** Keywords ***
OneCompany
    [Arguments]    ${productcode}    ${Companycode}    ${Salesman}    ${cartype}    ${产品}    ${risk}    ${PersonGroup}    ${是否两地车}
    [Documentation]    ${companycode} | ${Salesman} | ${riskcode} | ${car} | ${PersonGroup} | ${产品}
    #${proposalnolist}=    Create Dictionary
    #Set Global Variable    ${proposalnolist}
    Set To Dictionary    ${proposalnolist}    '机构代码'    ${Companycode}
    Set To Dictionary    ${proposalnolist}    '产品代码'    ${productcode}
    ${abPath}=    reversePath    ${CURDIR}    1
    Set To Dictionary    ${proposalnolist}    '项目路径'    ${abPath}
    Switch Browser    VHL
    run keyword if    'person' in '${PersonGroup}'    PersonCompany    ${Companycode}    ${Salesman}    ${risk}    ${cartype}    ${PersonGroup}    ${产品}    ${是否两地车}
    ...    ELSE    GroupCompany    ${Companycode}    ${Salesman}    ${risk}    ${cartype}    ${PersonGroup}    ${产品}    ${是否两地车}
    Log Many    ${proposalnolist}
